﻿using System;


namespace advadev.DataStorage
{

    /// <summary>
    /// Represents a xml directory data storage
    /// </summary>
    sealed public class XmlDirectoryDataStorage : DataStorageBase
    {

        /// <summary>
        /// Initializes a new instance of the XmlDirectoryDataStorage class by
        /// the given parameter
        /// </summary>
        /// <param name="applicationKey">
        /// Application key
        /// </param>
        /// <param name="pathName">
        /// A path name string that references the directory
        /// </param>
        /// <exception cref="ArgumentException">
        /// Will be thrown if the application key is empty or null
        /// </exception>
        /// <exception cref="ArgumentException">
        /// Will be thrown if the path name is not valid
        /// </exception>
        public XmlDirectoryDataStorage(string applicationKey, string pathName)
            : base(applicationKey, new GenericEntityXmlDirectoryDataStorage(pathName))
        {
        }

    }

}
